{% block title %}Agbay{% endblock %}

{% block content_title %}
  <h2>Profile Page</h2>
{% endblock %}

{% block content %}
<html>
<body>

<!-- <p><a href="update_profile.html"> {{ p_username }}</a><br /></p> -->
 {% if flag %}
	<p>Your profile page</p>
 {% else %}
 
 {% endif %}
<p>Username: {{ p_username}}</p>

<p>Created at:{{ p_cdate }}.</p>

<p>Updated at: {{ p_udate }}</p>

<p>Email: {{p_email}}</p> 

{% url agbay.views.view_notifications username=p_username as notifications_url %}

<a href="{{ notifications_url }}">Notifications</a>

{% url agbay.views.rating as rating_url %}

<p><a href="{{ rating_url }}"> Rate this user</a></p>

<form name = "deleteUser" action= "/delete/user/{{ p_username }}/" method="get"> {% csrf_token %}
	<p> <input type="submit" value="Delete Profile"/></p>
</form>

</body>
</html>

<form name = "createItem" action= "/create_item/" method="get"> {% csrf_token %}
	<p> <input type="submit" value="Create Item"/></p>
</form>

{% endblock %}
